import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
df=pd.read_excel('2022年某店铺3个分店销售额.xlsx')
classes = ['1班', '2班', '3班', '4班']
scores = [91, 98, 97, 95]
plt.figure(figsize=(8, 6))

sns.set_style(style='whitegrid')
plt.rcParams['font.sans-serif'] = 'SimHei'
sns.set_context(context='paper')
plt.subplot(1, 2, 1)
sns.color_palette(palette='pastel', n_colors=4, desat=0.8)
sns.barplot(x=classes, y=scores)
plt.title('浅色系')

plt.subplot(1, 2, 2)
sns.color_palette(palette='colorblind', n_colors=4, desat=0.8)
sns.barplot(x=classes, y=scores)
plt.title('对色盲友好')
plt.show()